package com.jingtai.core.entity.supply;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;

import java.math.BigDecimal;

import java.util.Date;

/**
 * 供应商订单表
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_supply_to_member_order")
@ApiModel(value = "供应商订单表", description = "供应商订单表")
public class SupplyToMemberOrder  extends BaseEntity implements Serializable {




	/**
	 * 供应商订单号
	 */
	@CApiModelProperty(value = "供应商订单号")
	private String supplyCode;

	/**
	 * 订单总编号
	 */
	@CApiModelProperty(value = "订单总编号")
	private String orderTotalCode;

	/**
	 * 订单自编号
	 */
	@CApiModelProperty(value = "订单自编号")
	private String orderChildCode;

	/**
	 * 供应商ID
	 */
	@CApiModelProperty(value = "供应商ID")
	private Long supplyId;

	/**
	 * 用户ID
	 */
	@CApiModelProperty(value = "用户ID")
	private Long memberId;

	/**
	 * 用户收货地址ID
	 */
	@CApiModelProperty(value = "用户收货地址ID")
	private Long memberAddressId;

	/**
	 * 订单金额
	 */
	@CApiModelProperty(value = "订单金额")
	private BigDecimal orderPrice;

	/**
	 * 运费
	 */
	@CApiModelProperty(value = "运费")
	private BigDecimal freight;

	/**
	 * 支付金额
	 */
	@CApiModelProperty(value = "支付金额")
	private BigDecimal payPrice;

	/**
	 * 订单状态 10.待支付 20.待发货30.已发货40.待评价 50.已完成60.已取消70无效订单
	 */
	@CApiModelProperty(value = "订单状态 10.待支付 20.待发货30.已发货40.待评价 50.已完成60.已取消70无效订单")
	private Integer orderState;

	/**
	 * 确认收货时间
	 */
	@CApiModelProperty(value = "确认收货时间")
	private Date sureGoodsTime;
}
